lcCRectsBitmap Home

Clips a part of a drawing within specified clipping rectangle and saves this part into a raster image file.

 BOOL lcCRectsBitmap (
   HANDLE hDrw,
   HANDLE hClipRect,
   LPCWSTR szFileName,
   double PixelSize
 );

Parameters
hDrw
  Handle to a drawing object.
hClipRect
  Handle to a clipping rectangle.
szFileName
  Full name of the saved file. It can be Windows bitmap format file (*.bmp) or other raster format supported by LiteCAD.
PixelSize
  Number of drawing's units in one pixel. This parameter defines the dimensions of saved raster image.
For example, if the clipping rectangle has width=210, height=297, and you set PixelSize=0.1, then output image will have dimensions 2100 x 2970 pixels.

Return Value

  If the function succeeds, the return value is nonzero (TRUE).